package org.beynet.docs.sync;

import org.beynet.docs.format.DocumentListEntry;

/**
 * conveys information about a remote file (file found server side)
 * the path of the file (relative ), and the md5sum of the file
 * @author beynet
 *
 */
public class RemoteFile {
    public RemoteFile(String name,String path,String md5Sum,boolean directory,DocumentListEntry entry) {
        this.path      = path ;
        this.md5Sum    = md5Sum ;
        this.directory = directory ;
        this.name      = name ;
        this.entry = entry ;
    }
    
    public String getMD5Sum() {
        return(this.md5Sum);
    }
    
    public String getPath(){
        return(this.path);
    }
    public String getName(){
        return(this.name);
    }
    
    public boolean isDirectory() {
        return(directory);
    }
    
    public DocumentListEntry getEntry(){
        return(this.entry);
    }
    
    private String path,md5Sum,name;
    private DocumentListEntry entry ;
    private boolean           directory ;
}

